package com.cqjtu.drive.mapper;

import com.cqjtu.drive.pojo.Course;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CourseMapper {

    Course getCourseById(String coId);

    void insertCourse(Course course);

    void updateCourse(Course course);

    void deleteCourse(String coId);

    List<Course> getAllCourses();

    List<Course> getCourseByname(String coName);
    List<Course> getCourseBycId(String cId);
}
